import vue from "vue"
import vuex from "vuex"
import state from "./state.js"
import mutations from "./mutations.js"
import actions from "./actions.js"
import vuexAlong from "vuex-along"
vue.use(vuex)

export default new vuex.Store({
  state,
  mutations,
  actions,
  plugins: [vuexAlong]  // vuexAlong 插件的使用
})
